// 封装一个生成新的播放数据格式的函数
export function useFormatPlayCount(playCount: number) {
  playCount = Math.abs(playCount);
  const yi = 100000000;
  const wan = 10000;
  if (playCount / yi >= 1) {
    return Math.floor((playCount / yi) * 100) / 100 + '亿';
  } else if (playCount / wan >= 1) {
    return Math.floor((playCount / wan) * 100) / 100 + '万';
  } else {
    return playCount;
  }
}
